
// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import VueRouter from 'vue-router'
import App from './App'
import router from './router'
import VueResource from 'vue-resource'
import { Swiper, XInput, XButton, Selector, Group, ToastPlugin, AlertPlugin, LoadingPlugin, XAddress, XProgress, ConfirmPlugin } from 'vux'
require("./components/common/common.css");
import CONSTANT from "../wechat/static/constant/urlconstant";
import common from "../wechat/static/common/common";
import wsService from "../wechat/static/common/wechat-jsdk";
import { XHeader } from 'vux'
import { DatetimeRange } from 'vux'

import Mui from 'vue-awesome-mui';
Vue.use(Mui);

Vue.component('x-header', XHeader)
Vue.use(require('vue-wechat-title'))
Vue.use(VueResource)
Vue.use(AlertPlugin)
Vue.use(LoadingPlugin)
Vue.use(ToastPlugin)
Vue.use(ConfirmPlugin)

Vue.component('swiper', Swiper)
Vue.component('x-input', XInput)
Vue.component('selector', Selector)
Vue.component('group', Group)
Vue.component('x-button', XButton)
Vue.component('x-progress', XProgress)
Vue.component('datetime-range', DatetimeRange)
Vue.config.productionTip = false

Vue.http.interceptors.push(function (request, next) {
  // request.credentials = false;
  //拦截器
  next(res => {

  });
});

/* eslint-disable no-new */
new Vue({
  router,
  render: h => h(App)
}).$mount('#app-box')


